package org.paradise.dms.services.impl;

import org.paradise.dms.dao.impl.DBBackupDAOImpl;
import org.paradise.dms.services.DBBackupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class DBBackupServiceImpl implements DBBackupService {
	
	@Autowired
	private DBBackupDAOImpl dbbackupDAOImpl;
	
	/**
	 * 备份数据库
	 */
	public String backup() {
		return dbbackupDAOImpl.backupDB();
	}

	public String restore() {
		return dbbackupDAOImpl.restoreDB();
	}

}
